import {
  IsDate,
  IsNotEmpty,
  IsNumber,
  IsOptional,
  IsString,
} from 'class-validator';

export class CategoryDto {
  @IsNumber()
  @IsOptional()
  id: number;

  @IsString()
  @IsNotEmpty()
  category_name: string;

  @IsString()
  @IsOptional()
  category_alias?: string;

  @IsString()
  @IsOptional()
  create_user?: number;

  @IsDate()
  @IsOptional()
  created_time?: Date;

  @IsDate()
  @IsOptional()
  update_time?: Date;
}
